#ifndef ViewImage_H
#define ViewImage_H

#include <QWidget>
#include "ewha.h"

class IImagePanel;

namespace Ui {
class ViewImage;
}

class ViewImage : public QWidget
{
	Q_OBJECT
public:
	explicit ViewImage(QWidget *parent = 0);
	~ViewImage();
	void setCaptureList(const QList<SCapture> &listCapture);

signals:
	void SignalWindowing(int width, int center);
	void SignalGamma(int gamma);
	void SignalSetTool(ETool eTool);
	void SignalWindowingValue(int iWWMax, int iWWMin, int iWidth, int iCenter);
	void SignalHistogramData(const QMap<int, int> &);
	void SignalProfileDraw(const QList<int> &);
	void SignalSaveImage();
	void SignalSaveDiagnosis();
	void SignalHistory(QAction *pUndo, QAction *pRedo);

private slots:
	void SlotLayout11();
	void SlotLayout12();
	void SlotLayout22();

private:
	void changeLayout(int iRow = 1, int iColumn = 1);

private:
	Ui::ViewImage *ui;
	IImagePanel *m_pImagePanel;
};

#endif // ViewImage_H
